package com.ljs.threadpooldemo.entity;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

import java.io.Serializable;

/**
 * 接收xmL参数，要用JacksonXmlRootElement来接收
 */
@Data
@JacksonXmlRootElement(localName="XmlEntity")
public class XmlEntity implements Serializable {
    @JacksonXmlProperty(localName = "id")
    private Integer id;
    @JacksonXmlProperty(localName = "name")
    private String name;
}
